package com.rms.recruit_management_system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rms.recruit_management_system.pojo.Resume;
import com.rms.recruit_management_system.dto.ResumeCountByDate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ResumeMapper extends BaseMapper<Resume> {
    @Select("SELECT COUNT(*) AS count,DATE(submit_time) as submitDate FROM resumes GROUP BY DATE(submit_time) ORDER BY DATE(submit_time) ASC limit 7")
    List<ResumeCountByDate> getResumeCountBySubmitTime();
}
